<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta http-equiv='X-UA-Compatible' content='IE=edge'>
		<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0, user-scalable=no">
		<link href="http://nos.netease.com/vod163/nep.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/weixin.css" />
		<link rel="stylesheet" type="text/css" href="../css/weui.css" />
		<title>手机端问卷</title>
		<style type="text/css">
			* {
				font-family: "MicroSoft YaHei";
				margin: 0;
				padding: 0;
				box-sizing: border-box;
			}
			
			body,
			html {
				background-color: #f2f8ff;
				margin: 0;
				padding: 0 !important;
				width: 100%;
				height: 100%;
				overflow: hidden;
			}
			
			.back-head {
				height: auto;
				background-image: url(../images/quan/moblie-banner-bg@2x.png) ;
				position: relative;
			}
			.headerimg img{
				margin: 0 auto;
			}
			.back-head h1{
				position: absolute;
				top: 40px;
			}
			.middle {
				width: 100%;
				border: 1px solid;
			}
			.page{
				width: 90%;
				height: 820px;
				border: 1px solid;
				margin: 0 auto;
				margin: 0 5%;
			}
		</style>
	</head>

	<body>
		<div class="back-head">
			<!--头部-->
			<div class="col-xs-12 headimg">
				<img src="../images/quan/mobile-banner-bg@2x.png" class="img-responsive center-block" width="100%"/>
				<h1 class="text-center" id="questionTitle">关于神州浩天的服务说明是今天333</h1>
			</div>	
		</div>
		<script src="../js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/htcloud.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/rem.js" type="text/javascript" charset="utf-8"></script>
		<script src="" type="text/javascript" charset="utf-8">
		    $(document).ready(function() {
				titleHandle();
				//美化按钮
				$('input').iCheck({
					checkboxClass: 'icheckbox_flat-blue',
					radioClass: 'iradio_flat-blue'
				});
			});
			function titleHandle() {
				var title = $("#questionTitle").text().trim();
				console.log(title);
				if(title.length > 12) {
					$("#questionTitle").css('font-size', '42px');
					if(title.length % 2 == 0) {
						title = title.substr(0, (title.length - 4) / 2) + "<br/>" + title.substr((title.length - 4) / 2);
					} else {
						title = title.substr(0, (title.length - 3) / 2) + "<br/>" + title.substr((title.length - 3) / 2);
					}
					$("#questionTitle").html(title);
				} else {
					$("#questionTitle").css('font-size', '56px');
				}
			}
		</script>
	</body>

</html>